package com.xxx.pojo;

import java.util.List;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/8/12 10:28
 * @Copyright 博为峰
 */
public class Orders {
    private int id;
    private int userId;
    private int amount;
    private User user;
    private List<OrderDetail> orderDetail;

    public List<OrderDetail> getOrderDetail() {
        return orderDetail;
    }

    public void setOrderDetail(List<OrderDetail> orderDetail) {
        this.orderDetail = orderDetail;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Orders() {
    }

    public Orders(int id, int userId, int amount) {
        this.id = id;
        this.userId = userId;
        this.amount = amount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

//    @Override
//    public String toString() {
//        return "Orders{" +
//                "id=" + id +
//                ", userId=" + userId +
//                ", amount=" + amount +
//                ", user=" + user +
//                ", orderDetail=" + orderDetail +
//                '}';
//    }
}
